const {ccclass, property} = cc._decorator;

@ccclass
export default class StartScene extends cc.Component {

    @property(cc.Button)
    PlayerBtn: cc.Button = null;

    // onLoad () {}

    start () {
        this.PlayerBtn.node.on('click',this.onPlayerBtnClick.bind(this));
    }

    // update (dt) {}
    onPlayerBtnClick(){
        cc.director.loadScene('GameScene');
    }
}
